/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const DispatchRouter = {
  path: '/dispatch',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Dispatch',
  meta: {
    title: '调度管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'TransportTask',
      component: () => import('@/views/DispatchManagement/TransportTask'),
      name: 'TransportTask',
      meta: { title: '运输任务管理', noCache: true }
    },
    {
      path: 'Lines',
      component: () => import('@/views/DispatchManagement/Lines'),
      name: 'Lines',
      meta: { title: '线路管理', noCache: true }
    },
    {
      path: 'pick-up',
      component: () => import('@/views/DispatchManagement/pick-up'),
      name: 'pick-up',
      meta: { title: '取件作业管理', noCache: true }
    },
    {
      path: 'delivery',
      component: () => import('@/views/DispatchManagement/delivery'),
      name: 'delivery',
      meta: { title: '派件作业管理', noCache: true }
    }
  ]
}

export default DispatchRouter
